﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class add_bookaspx : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        var book = new YF.Model.t_book();
        book.bookName = txtBookName.Text;
        book.author = txtAuthor.Text;
        if (YF.BLL.BookBLL.add(book))
            YF.JsHelper.Alert("添加成功");
        else
            YF.JsHelper.Alert("添加失败");
    }
}